import pytest

from pageobject.cxsq import Cxsq


# @pytest.mark.run(order=3)
class TestCxsq:
        pass
    # def test_cxsq_case01(self):
    #     cxsq = Cxsq(driver)
    #     cxsq.intocxsq()
    #     cxsq.cxdximport()
    #     # driver.switch_to.default_content()
    #     # frame = driver.find_element(By.NAME, 'iframe')
    #     # driver.switch_to.frame(frame)
    #     # driver.find_element(By.XPATH,'//input[@value="保存"]').click()
    #     driver.implicitly_wait(2)
    #     print(driver.window_handles)
    #
    # def test_alert(self):  # 保存后的 遮罩确认
    #     # a = driver.switch_to.alert()
    #
    #     formframe = driver.find_element(By.XPATH, '//*[@id="win_detail"]')
    #     driver.switch_to.frame(formframe)
    #     # print(driver.find_element(By.XPATH,'//*[@id="ext-comp-1001"]/tbody/tr[2]/td[2]'))  #   //*[@id="ext-gen28"]/text()[2]  //*[@id="ext-comp-1001"]/tbody/tr[2]/td[2]
    #     # driver.find_element(By.XPATH, '//*[@id="ext-comp-1001"]/tbody/tr[2]/td[2]').click()  #点击按钮
    #     driver.find_element(By.XPATH, '//*[@id="ext-comp-1001"]/tbody/tr[2]/td[2]/em').click()  # 点击按钮  同上